package cn.edu.scau.cmi.maikejian.simpleFactoryMethod;

public class Creator {
    public Meat factory(String Meat) {
    	if(Meat=="Pork") 
    	{
    		Pork P = new Pork();
    		return P;
    	} else if(Meat=="Beef")
    	{
    		Beef B = new Beef();
    		return B;
    	}
    	else if(Meat=="Chicken")
    	{
    		Chicken C = new Chicken();
    		return C;
    	}
    	return null;
    }
	
	
}
